<?php

Route::group(['middleware' => 'web', 'prefix' => 'slider', 'namespace' => 'Modules\Slider\Http\Controllers'], function()
{
//    Route::get('/', 'SliderController@index');
//    配置轮播图首页加载路由
    Route::get('/', 'SliderController@index')->name('slider');
//    配置轮播图资源控制器的路由
    Route::resource("/slider",'SliderController');
});
